import React, {Component} from 'react';
import {StoreProvider} from 'iflux2';
import AppStore from './store';
import {Form} from 'antd';

import Search from './component/search';
import OrderList from './component/order-list';


@StoreProvider(AppStore)
class Receipt extends Component {
    render() {
        const {form, store: {resetPagination, queryOrderList}} = this.props;

        return (
            <div className="order-list">
                <Search form={form}
                        resetPagination={resetPagination}
                        queryOrderList={queryOrderList}/>
                <OrderList/>
            </div>
        )
    }
}

export default Form.create()(Receipt)
